package ac.svn.accesscontrol.store;

import java.util.ArrayList;
import java.util.List;

import ac.svn.accesscontrol.utils.Utility;

public class SVNTag 
{
	private String tagId;
	private String tagText;
	private int lineNumber;
	private List<String> lines;

	public String getTagText() {
		return tagText;
	}

	public void setTagText(String tagText) {
		this.tagText = tagText;
	}

	public int getLineNumber() {
		return lineNumber;
	}

	public void setLineNumber(int lineNumber) {
		this.lineNumber = lineNumber;
	}
	
	public void addLine(String line)
	{
		this.lines.add(line);
	}
	
	public void removeLine(String line)
	{
		this.lines.remove(line);
	}

	public String getTagId() {
		return tagId;
	}
	
	public SVNTag()
	{
		tagId = Utility.getGUID();
		tagText = "";
		lineNumber = 0;
		this.lines = new ArrayList<String>(0);
	}

	public SVNTag(String tagText, int lineNumber) {
		super();
		this.tagId = Utility.getGUID();
		this.tagText = tagText;
		this.lineNumber = lineNumber;
		this.lines = new  ArrayList<String>();
	}

	public List<String> getLines() {
		return lines;
	}

	public void setLines(List<String> lines) {
		this.lines = lines;
	}
	
	
	
	
}
